<?php


Route::get('demo', 'HomeController@demo');

Route::group([
    'prefix' => 'shop'
], function () {
    Route::get('my_scrip', 'ShopController@my_scrip');
    Route::get('weixin_callback_url', 'ShopController@weixin_callback_url');
    Route::get('', 'ShopController@index');
});

Route::group([
    'prefix' => 'test'
], function () {
    Route::get('weixinlogin', 'TestController@weixinlogin');
    Route::get('weixinlogin_callback', 'TestController@weixinlogin_callback');
    Route::get('weixinpay_jsapi', 'TestController@weixinpay_jsapi');
    Route::match(['get', 'post'], 'weixinpay_notify', 'TestController@weixinpay_notify');
});
